package d集合.day2.set;

import java.util.TreeSet;

public class Demo2_TreeSet {
    public static void main1(String[] args) {
        TreeSet ts=new TreeSet();
        ts.add("Chinese");
        ts.add("America");
        ts.add("China");
        ts.add("Japan");
        System.out.println(ts);
    }

    public static void main(String[] args) {
        TreeSet ts=new TreeSet();
        ts.add(new Emp(900,"a1"));
        ts.add(new Emp(100,"a2"));
        System.out.println(ts.size());
        System.out.println(ts);
    }
}
